package com.mbl.base.modular.member.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mbl.base.core.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author lwj
 * @since 2020-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mbl_member_user")
@ApiModel(value="User对象", description="用户表")
public class User extends BaseEntity<User> {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "角色ids")
    private Integer[] roleIds;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "头像图片")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    /**
     * 性别：0：未知，1：男，2：女
     */
    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer dictSex;

    /**
     * ：0：正常，1：禁用，2：注销
     */
    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer dictDataRowStatus;

    @ApiModelProperty(value = "积分")
    private Integer integral;
}
